<script>
$(document).ready(function(){
	$("#sTable").tablesorter();
});
</script>
<table  id="sTable"    class="tablesorter"  border="1">
<thead>
<tr>
<th><?php echo $this->translate('student id')?></th>
<th><?php echo $this->translate('class name')?></th>
<th><?php echo $this->translate('number')?></th>
<th><?php echo $this->translate('student name')?></th>
<th><?php echo $this->translate('student sex')?></th>
<th><?php echo $this->translate('birthday')?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->data as $val):?>
<tr>
<td><?php echo $val['student_id']?></td>
<td><?php if (isset($this->className[$val['grade'].'-'.$val['class_sn']]))echo $this->className[$val['grade'].'-'.$val['class_sn']]?></td>
<td>
<?php echo $val['number']?>
</td>
<td><?php echo $val['name']?></td>
<td><?php if ($val['sex']=='M'):?><?php echo $this->translate('boy')?><?php else:?><?php echo $this->translate('girl')?><?php endif?></td>
<td><?php echo $val['birthday']?></td>
</tr>
<?php endforeach?>
</tbody>
</table>